/*
 * // +-------------------------------------------------------------------------------------------------
 * // |                 有你就好 [ 有节骨乃坚，无心品自端 ]     <http://encoding.wang>
 * // +-------------------------------------------------------------------------------------------------
 * // |                             独在异乡为异客         每逢佳节倍思亲
 * // +-------------------------------------------------------------------------------------------------
 * // |                 联系:   <707069100@qq.com>      <http://weibo.com/513778937>
 * // +-------------------------------------------------------------------------------------------------
 */

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                   ErYang出品 属于小极品          共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------


package wang.encoding.mroot.plugin.ueditor.define;


/**
 * 处理状态接口
 *
 * @author ErYang
 */
public interface State {

    /**
     * 成功
     *
     * @return Boolean
     */
    Boolean isSuccess();

    // -------------------------------------------------------------------------------------------------

    /**
     * 信息
     *
     * @param name String
     * @param val  String
     */
    void putInfo(String name, String val);

    // -------------------------------------------------------------------------------------------------

    /**
     * 信息
     *
     * @param name String
     * @param val  Long
     */
    void putInfo(String name, Long val);

    // -------------------------------------------------------------------------------------------------

    /**
     * 转为 JSON
     *
     * @return String
     */
    String toJSONString();

    // -------------------------------------------------------------------------------------------------

}

// -----------------------------------------------------------------------------------------------------

// End State class

/* End of file State.kt */
/* Location: ./src/main/kotlin/wang/encoding/mroot/plugin/ueditor/define/State.kt */

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                           ErYang出品 属于小极品  O(∩_∩)O~~   共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------
